<template>
	<span :class="item.style">{{item.label}}</span>
</template>

<script>
  import mixin_show from './mixin_show'

  //true/false 等常见文字 转为 是否加颜色
  export default {
    name: "zzspanDict",
    mixins: [
      mixin_show,
    ],
    props: {
      classname: null,
      value: null,
    },
    data() {
      return {}
    },
    computed: {
      item() {
        if (this.classname && this.dictsFull[this.classname]) {
          return this.dictsFull[this.classname][this.value] || {}
        }
        return {}
      },
    },
    watch: {},
    created() {
      this.classname && this.zzloadDicts([this.classname])
    },
    methods: {}
  };
</script>
<style scoped lang="scss">

</style>
